package com.jxzyk.http.req;

import android.content.Context;

import com.core.entity.params.ReqParams;
import com.jxzyk.config.API;
import com.jxzyk.http.BaseRequest;

public class CollectionRequest extends BaseRequest {

	public CollectionRequest(Context context, String url) {
		super(context, url);
	}

	@Override
	public String getUrl() {
		return getURL();
	}

	@Override
	public void setParams(String... value) {
		super.setParams(value);
		params.put("user_id", value[0]);
		params.put("course_id", value[1]);
	}

	@Override
	public ReqParams getParams() {
		String url = getURL();
		switch (url) {
		case API.Collection.mark:

			return params;
		case API.Collection.delMark:

			return params;
		default:
			return null;
		}
	}

	@Override
	public OnDialogListener getListener() {
		// TODO Auto-generated method stub
		return null;
	}

}
